package com.cskaoyan;

import org.springframework.transaction.TransactionStatus;
import org.springframework.transaction.support.TransactionCallback;

//public class CustomTransactionCallBack implements TransactionCallback {
//    @Override
//    public Object doInTransaction(TransactionStatus transactionStatus) {
//        //更新money
//        accountMapper.updateMoneyById(fromId, fromMoney);
//        //int i = 1 / 0;
//        accountMapper.updateMoneyById(destId, destMoney);
//        return null;
//    }
//}
